<?php

class PostControllerConstructorHook
{

    function doInit()
    {
		$this->CI =& get_instance();
		if(strrpos($this->CI->config->config['site_url'], 'christmas.findopendeals.com') !== FALSE )
		{
			$this->CI->google_analytic_code = 'UA-36962935-1';
			
			// default html meta 
			$this->CI->html_meta = array 
			(	
				 'page_title' => 'FindOpenDeals.com: Online Shopping for Christmas | Lights, Trees |  &amp; Global Products, Deals'
				,'meta_description' => 'FindOpenDeals.com providing more than 10000 Christmas products for your online Christmas shopping, we have everything at our Christmas store.start your family shop here.'
				,'meta_keywords' => 'Findopendeals, online shopping, Christmas online shops, Christmas deals, christmas greetings, Christmas deals, christmas invitations, Christmas deals, christmas invitations, christmas inflatables, christmas pillows kids, christmas crafts, creative christmas gifts, christmas ornaments clearance, christmas party invitations, christmas lights wholesale, personalized christmas gifts'
				,'robots' => 'noindex, nofollow'
			);
		}
		else
		{
			$this->CI->google_analytic_code = 'UA-35820750-1';
			
			// default html meta 
			$this->CI->html_meta = array 
			(	
				 'page_title' => 'FindOpenDeals - Online Shopping Malls. Shop/Buy Books, Mobiles, Cameras, Apparel, Computers, Electronics, Automotive, Baby, DVD, Clothes &amp; Global Products'
				,'meta_keywords' => 'Findopendeals, find deals, online product, best quality deal, online shopping mall, PC, desktops, notebooks, monitors, printers, scanners, software, hardware, portable electronics, 2-way radios, toys, lego, Computer CD DVD Burner, Software, Camera, digital Motherboard, Buy Computers, PDA, Servers, Hard Drive, LCD Monitors, Plasma Displays, consumer electronics, stereos, pdas, palm, organizer, mp3 players'
				,'meta_description' => 'Findopendeals.com provide online shopping mall, Global apparel/clothes, computers, jewellery,  laptops, books, dvd &amp; best quality deals, products in all over the world.'
				,'robots' => 'noindex, nofollow'
			);
		} 		
		// defaut banners
		$this->CI->banner_1 = '<iframe src="http://rcm.amazon.com/e/cm?t=findopendeals-20&o=1&p=26&l=ur1&category=holdeals&banner=1NZRAQ7WRTQVJKWVACR2&f=ifr" width="468" height="60" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe>';
		$this->CI->banner_2 = '<div><script type=\'text/javascript\'>var amzn_wdgt={widget:\'Search\'};amzn_wdgt.tag=\'findopendeals-20\';amzn_wdgt.columns=\'1\';amzn_wdgt.rows=\'1\';amzn_wdgt.defaultSearchTerm=\'christmas\';amzn_wdgt.searchIndex=\'DVD\';amzn_wdgt.width=\'270\';amzn_wdgt.showImage=\'True\';amzn_wdgt.showPrice=\'True\';amzn_wdgt.showRating=\'True\';amzn_wdgt.design=\'2\';amzn_wdgt.colorTheme=\'Default\';amzn_wdgt.headerTextColor=\'#FFFFFF\';amzn_wdgt.outerBackgroundColor=\'#C7021E\';amzn_wdgt.marketPlace=\'US\';</script><script type=\'text/javascript\' src=\'http://wms.assoc-amazon.com/20070822/US/js/AmazonWidgets.js\'></script></div>';
		$this->CI->banner_3 = '<ul><li><iframe src="http://rcm.amazon.com/e/cm?t=findopendeals-20&o=1&p=12&l=ur1&category=holiday12&banner=1YBYEV09J63JMCV623R2&f=ifr" width="300" height="250" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe></li><li><iframe src="http://rcm.amazon.com/e/cm?t=findopendeals-20&o=1&p=12&l=ur1&category=holiday12&banner=1FVA29A5H976CDQWMAG2&f=ifr" width="300" height="250" scrolling="no" border="0" marginwidth="0" style="border:none;" frameborder="0"></iframe></li></ul>';
		
		$this->CI->css_head = array
		(
			 '/css/style.css'
		);
			
		$this->CI->javascript_head = array
		(
			'/js/jquery-1.8.1.min.js'
			,'/js/jquery.tooltip.js'
		);

		
		// template settings for admin starts
		if($this->CI->template->template['template'] == 'template_admin')
		{
			$this->CI->css_head = array
			(
				 '/css/admin_style.css'
			);
			
			$this->CI->javascript_head = array
			(
				'/js/jquery-1.8.1.min.js'
			);
		
		}
		
		if($this->CI->template->template['template'] == 'template_admin_simple')
		{
			$this->CI->css_head = array
			(
				 '/css/admin_style.css'
			);
			
			$this->CI->javascript_head = array
			(
				'/js/jquery-1.8.1.min.js'
			);
		
		}
		//end of admin template settings
    }
}

/* End of file post_controller_constructor_hook.php */
/* Location: ./application/hooks/post_controller_constructor_hook.php */